class BootStrap {

     def init = { servletContext ->
     	
     	new com.uiandtherest.app.Team(name:"Syracuse", mascot:"Orange", sport:"Lacrosse")
     		.addToPerson(new com.uiandtherest.app.Person(fname:"Gary", lname:"Gait"))
     		.addToPerson(new com.uiandtherest.app.Person(fname:"Paul", lname:"Gait"))
     		.save()
     	new com.uiandtherest.app.Team(name:"North Carolina", mascot:"Tar Heels", sport:"Lacrosse")
	     	.addToPerson(new com.uiandtherest.app.Person(fname:"Billy", lname:"Bitter"))
	 		.addToPerson(new com.uiandtherest.app.Person(fname:"Jeff", lname:"Sonke"))
	 		.save()
     	new com.uiandtherest.app.Team(name:"Duke", mascot:"Blue Devils", sport:"Lacrosse")
	     	.addToPerson(new com.uiandtherest.app.Person(fname:"Matt", lname:"Danowski"))
	 		.addToPerson(new com.uiandtherest.app.Person(fname:"Zach", lname:"Greer"))
	 		.save()
     	new com.uiandtherest.app.Team(name:"Maryland", mascot:"Terps", sport:"Lacrosse")
	     	.addToPerson(new com.uiandtherest.app.Person(fname:"Joe", lname:"Walters"))
	 		.save()
     	new com.uiandtherest.app.Team(name:"Virginia", mascot:"Cavaliers", sport:"Lacrosse")
	     	.addToPerson(new com.uiandtherest.app.Person(fname:"Matt", lname:"Ward"))
	 		.addToPerson(new com.uiandtherest.app.Person(fname:"Doug", lname:"Knight"))
	 		.save()
	 		
	 	new com.uiandtherest.app.Player(fname:"Matt", lname:"Ward", team:"Virginia").save()
	 	new com.uiandtherest.app.Player(fname:"Casey", lname:"Powell", team:"Syracuse").save()
	 	new com.uiandtherest.app.Player(fname:"Ryan", lname:"Powell", team:"Syracuse").save()
	 
     	
     }
     def destroy = {
     }
} 